import { RouteConfig } from "vue-router";
import Index from '@/pages/member/index.vue';
import SharePoster from '@/pages/member/sharePoster.vue';
import RecommendOrder from '@/pages/member/recommendOrder.vue';
import RebateDetail from '@/pages/member/rebateDetail.vue';
import ConsumeList from '@/pages/member/consumeList.vue';
import RechargeList from '@/pages/member/rechargeList.vue';
import RechargeRecordList from '@/pages/member/rechargeRecordList.vue';
import { ROUTE_NAME } from "@/lib/constant";

export const routes: RouteConfig[] = [
    {
        path: '/member/index',
        name: ROUTE_NAME.MEMBER_INDEX,
        meta: {
            title: '会员',
        },
        component: Index,
    },
    {
        path: '/member/share_poster',
        name: ROUTE_NAME.MEMBER_SHARE_POSTER,
        meta: {
            title: '我的海报',
        },
        component: SharePoster,
    },
    {
        path: '/member/recommend_order/:userId?',
        name: ROUTE_NAME.MEMBER_RECOMMEND_ORDER,
        meta: {
            title: '订单明细',
        },
        component: RecommendOrder,
    },
    {
        path: '/member/rebate/detail',
        name: ROUTE_NAME.MEMBER_REBATE_DETAIL,
        meta: {
            title: '返利明细',
        },
        component: RebateDetail,
    },
    {
        path:'/member/consumeList',
        name:ROUTE_NAME.MEMBER_CONSUME_LIST,
        meta:{
            title:'消费记录'
        },
        component:ConsumeList
    },
    {
        path:'/member/rechargeList',
        name:ROUTE_NAME.MEMBER_RECHARGE_LIST,
        meta:{
            title:'充值余额'
        },
        component:RechargeList
    },
    {
        path:'/member/rechargeRecordList',
        name:ROUTE_NAME.MEMBER_RECHARGERECORE_LIST,
        meta:{
            title:'充值记录'
        },
        component:RechargeRecordList
    }
];
